/**
 * 继承
 */


class User {
    constructor(name) {
        this.name = name
    }

    show() {
        console.log(`user ${this.name} show`)
    }

}

class Admin extends  User{
    constructor(name,age) {
        super(name);
    }
    show() {
        console.log(`${name}`)
    }
}

const user = new User('ck')
const admin = new Admin('','');
admin.show()
// user.show()

